<template>
  <div id="basicLayout">
    <a-layout class="layout">
      <a-layout-header class="header">
        <GlobalHeader></GlobalHeader>
      </a-layout-header>
      <a-layout-content class="content">
        <router-view />
      </a-layout-content>
      <a-layout-footer class="footer"
        ><a href="https://gitee.com/dastatham/oj-answer-judgment-system"
          >项目源码地址</a
        ></a-layout-footer
      >
    </a-layout>
  </div>
</template>

<style>
.layout {
  min-height: 100vh;
}

#basicLayout .header {
  height: 105px;
  box-shadow: #eeee 2px 2px 7px;
}

#basicLayout .content {
  /* linear-gradient(to right, #bbb, #fff),设置背景渐变为从左到右的线性渐变，颜色从 #bbb 渐变到 #fff */
  margin-top: 30px;
  background: linear-gradient(to right, #fefefe, #fff);
  margin-bottom: 16px;
  padding: 20px;
}

#basicLayout .footer {
  background: #efefef;
  padding: 16px;

  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
}
</style>
<script>
import { defineComponent } from "vue";
import GlobalHeader from "@/components/GlobalHeader.vue";

export default defineComponent({
  components: { GlobalHeader },
});
</script>
